/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package seso;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 *
 * @author Administrator
 */
@Entity
@Table(name = "EuropeOrderText", catalog = "M3ERP", schema = "dbo")
@NamedQueries({
    @NamedQuery(name = "EuropeOrderText.findAll", query = "SELECT e FROM EuropeOrderText e"),
    @NamedQuery(name = "EuropeOrderText.findByTransNoLine", query = "SELECT e FROM EuropeOrderText e WHERE e.transNoLine = :transNoLine"),
    @NamedQuery(name = "EuropeOrderText.findByTransactionNo", query = "SELECT e FROM EuropeOrderText e WHERE e.transactionNo = :transactionNo"),
    @NamedQuery(name = "EuropeOrderText.findByErrorMessage", query = "SELECT e FROM EuropeOrderText e WHERE e.errorMessage = :errorMessage"),
    @NamedQuery(name = "EuropeOrderText.findByOrderType", query = "SELECT e FROM EuropeOrderText e WHERE e.orderType = :orderType"),
    @NamedQuery(name = "EuropeOrderText.findByItemNo", query = "SELECT e FROM EuropeOrderText e WHERE e.itemNo = :itemNo"),
    @NamedQuery(name = "EuropeOrderText.findByFacility", query = "SELECT e FROM EuropeOrderText e WHERE e.facility = :facility"),
    @NamedQuery(name = "EuropeOrderText.findBySeason", query = "SELECT e FROM EuropeOrderText e WHERE e.season = :season"),
    @NamedQuery(name = "EuropeOrderText.findByLabel", query = "SELECT e FROM EuropeOrderText e WHERE e.label = :label"),
    @NamedQuery(name = "EuropeOrderText.findByM3Quality", query = "SELECT e FROM EuropeOrderText e WHERE e.m3Quality = :m3Quality"),
    @NamedQuery(name = "EuropeOrderText.findByM3Style", query = "SELECT e FROM EuropeOrderText e WHERE e.m3Style = :m3Style"),
    @NamedQuery(name = "EuropeOrderText.findByCustomerDigitalCode", query = "SELECT e FROM EuropeOrderText e WHERE e.customerDigitalCode = :customerDigitalCode"),
    @NamedQuery(name = "EuropeOrderText.findByCustomer", query = "SELECT e FROM EuropeOrderText e WHERE e.customer = :customer"),
    @NamedQuery(name = "EuropeOrderText.findByCustomerCode", query = "SELECT e FROM EuropeOrderText e WHERE e.customerCode = :customerCode"),
    @NamedQuery(name = "EuropeOrderText.findByM3Color", query = "SELECT e FROM EuropeOrderText e WHERE e.m3Color = :m3Color"),
    @NamedQuery(name = "EuropeOrderText.findBySizeList", query = "SELECT e FROM EuropeOrderText e WHERE e.sizeList = :sizeList"),
    @NamedQuery(name = "EuropeOrderText.findByQuantity", query = "SELECT e FROM EuropeOrderText e WHERE e.quantity = :quantity"),
    @NamedQuery(name = "EuropeOrderText.findByPrice", query = "SELECT e FROM EuropeOrderText e WHERE e.price = :price"),
    @NamedQuery(name = "EuropeOrderText.findByBarcode", query = "SELECT e FROM EuropeOrderText e WHERE e.barcode = :barcode"),
    @NamedQuery(name = "EuropeOrderText.findByRvPoNo", query = "SELECT e FROM EuropeOrderText e WHERE e.rvPoNo = :rvPoNo"),
    @NamedQuery(name = "EuropeOrderText.findByRvSubCustomerCode", query = "SELECT e FROM EuropeOrderText e WHERE e.rvSubCustomerCode = :rvSubCustomerCode"),
    @NamedQuery(name = "EuropeOrderText.findByRvDelDateFrom", query = "SELECT e FROM EuropeOrderText e WHERE e.rvDelDateFrom = :rvDelDateFrom"),
    @NamedQuery(name = "EuropeOrderText.findByRvDelDateTo", query = "SELECT e FROM EuropeOrderText e WHERE e.rvDelDateTo = :rvDelDateTo"),
    @NamedQuery(name = "EuropeOrderText.findByRvDelivery", query = "SELECT e FROM EuropeOrderText e WHERE e.rvDelivery = :rvDelivery"),
    @NamedQuery(name = "EuropeOrderText.findByItemDescription", query = "SELECT e FROM EuropeOrderText e WHERE e.itemDescription = :itemDescription"),
    @NamedQuery(name = "EuropeOrderText.findByFileSequence", query = "SELECT e FROM EuropeOrderText e WHERE e.fileSequence = :fileSequence")})
public class EuropeOrderText implements Serializable {
    @Transient
    private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "TransNoLine")
    private String transNoLine;
    @Column(name = "TransactionNo")
    private String transactionNo;
    @Column(name = "ErrorMessage")
    private String errorMessage;
    @Column(name = "OrderType")
    private Character orderType;
    @Column(name = "ItemNo")
    private String itemNo;
    @Column(name = "Facility")
    private String facility;
    @Column(name = "Season")
    private String season;
    @Column(name = "Label")
    private String label;
    @Column(name = "M3Quality")
    private String m3Quality;
    @Column(name = "M3Style")
    private String m3Style;
    @Column(name = "CustomerDigitalCode")
    private String customerDigitalCode;
    @Column(name = "Customer")
    private String customer;
    @Column(name = "CustomerCode")
    private String customerCode;
    @Column(name = "M3Color")
    private String m3Color;
    @Column(name = "SizeList")
    private String sizeList;
    @Column(name = "Quantity")
    private Integer quantity;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "Price")
    private Double price;
    @Column(name = "Barcode")
    private String barcode;
    @Column(name = "RvPoNo")
    private String rvPoNo;
    @Column(name = "RvSubCustomerCode")
    private String rvSubCustomerCode;
    @Column(name = "RvDelDateFrom")
    @Temporal(TemporalType.DATE)
    private Date rvDelDateFrom;
    @Column(name = "RvDelDateTo")
    @Temporal(TemporalType.DATE)
    private Date rvDelDateTo;
    @Column(name = "RvDelivery")
    private Character rvDelivery;
    @Column(name = "ItemDescription")
    private String itemDescription;
    @Column(name = "FileSequence")
    private Integer fileSequence;

    public EuropeOrderText() {
    }

    public EuropeOrderText(String transNoLine) {
        this.transNoLine = transNoLine;
    }

    public String getTransNoLine() {
        return transNoLine;
    }

    public void setTransNoLine(String transNoLine) {
        String oldTransNoLine = this.transNoLine;
        this.transNoLine = transNoLine;
        changeSupport.firePropertyChange("transNoLine", oldTransNoLine, transNoLine);
    }

    public String getTransactionNo() {
        return transactionNo;
    }

    public void setTransactionNo(String transactionNo) {
        String oldTransactionNo = this.transactionNo;
        this.transactionNo = transactionNo;
        changeSupport.firePropertyChange("transactionNo", oldTransactionNo, transactionNo);
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        String oldErrorMessage = this.errorMessage;
        this.errorMessage = errorMessage;
        changeSupport.firePropertyChange("errorMessage", oldErrorMessage, errorMessage);
    }

    public Character getOrderType() {
        return orderType;
    }

    public void setOrderType(Character orderType) {
        Character oldOrderType = this.orderType;
        this.orderType = orderType;
        changeSupport.firePropertyChange("orderType", oldOrderType, orderType);
    }

    public String getItemNo() {
        return itemNo;
    }

    public void setItemNo(String itemNo) {
        String oldItemNo = this.itemNo;
        this.itemNo = itemNo;
        changeSupport.firePropertyChange("itemNo", oldItemNo, itemNo);
    }

    public String getFacility() {
        return facility;
    }

    public void setFacility(String facility) {
        String oldFacility = this.facility;
        this.facility = facility;
        changeSupport.firePropertyChange("facility", oldFacility, facility);
    }

    public String getSeason() {
        return season;
    }

    public void setSeason(String season) {
        String oldSeason = this.season;
        this.season = season;
        changeSupport.firePropertyChange("season", oldSeason, season);
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        String oldLabel = this.label;
        this.label = label;
        changeSupport.firePropertyChange("label", oldLabel, label);
    }

    public String getM3Quality() {
        return m3Quality;
    }

    public void setM3Quality(String m3Quality) {
        String oldM3Quality = this.m3Quality;
        this.m3Quality = m3Quality;
        changeSupport.firePropertyChange("M3Quality", oldM3Quality, m3Quality);
    }

    public String getM3Style() {
        return m3Style;
    }

    public void setM3Style(String m3Style) {
        String oldM3Style = this.m3Style;
        this.m3Style = m3Style;
        changeSupport.firePropertyChange("M3Style", oldM3Style, m3Style);
    }

    public String getCustomerDigitalCode() {
        return customerDigitalCode;
    }

    public void setCustomerDigitalCode(String customerDigitalCode) {
        String oldCustomerDigitalCode = this.customerDigitalCode;
        this.customerDigitalCode = customerDigitalCode;
        changeSupport.firePropertyChange("customerDigitalCode", oldCustomerDigitalCode, customerDigitalCode);
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        String oldCustomer = this.customer;
        this.customer = customer;
        changeSupport.firePropertyChange("customer", oldCustomer, customer);
    }

    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        String oldCustomerCode = this.customerCode;
        this.customerCode = customerCode;
        changeSupport.firePropertyChange("customerCode", oldCustomerCode, customerCode);
    }

    public String getM3Color() {
        return m3Color;
    }

    public void setM3Color(String m3Color) {
        String oldM3Color = this.m3Color;
        this.m3Color = m3Color;
        changeSupport.firePropertyChange("M3Color", oldM3Color, m3Color);
    }

    public String getSizeList() {
        return sizeList;
    }

    public void setSizeList(String sizeList) {
        String oldSizeList = this.sizeList;
        this.sizeList = sizeList;
        changeSupport.firePropertyChange("sizeList", oldSizeList, sizeList);
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        Integer oldQuantity = this.quantity;
        this.quantity = quantity;
        changeSupport.firePropertyChange("quantity", oldQuantity, quantity);
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        Double oldPrice = this.price;
        this.price = price;
        changeSupport.firePropertyChange("price", oldPrice, price);
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        String oldBarcode = this.barcode;
        this.barcode = barcode;
        changeSupport.firePropertyChange("barcode", oldBarcode, barcode);
    }

    public String getRvPoNo() {
        return rvPoNo;
    }

    public void setRvPoNo(String rvPoNo) {
        String oldRvPoNo = this.rvPoNo;
        this.rvPoNo = rvPoNo;
        changeSupport.firePropertyChange("rvPoNo", oldRvPoNo, rvPoNo);
    }

    public String getRvSubCustomerCode() {
        return rvSubCustomerCode;
    }

    public void setRvSubCustomerCode(String rvSubCustomerCode) {
        String oldRvSubCustomerCode = this.rvSubCustomerCode;
        this.rvSubCustomerCode = rvSubCustomerCode;
        changeSupport.firePropertyChange("rvSubCustomerCode", oldRvSubCustomerCode, rvSubCustomerCode);
    }

    public Date getRvDelDateFrom() {
        return rvDelDateFrom;
    }

    public void setRvDelDateFrom(Date rvDelDateFrom) {
        Date oldRvDelDateFrom = this.rvDelDateFrom;
        this.rvDelDateFrom = rvDelDateFrom;
        changeSupport.firePropertyChange("rvDelDateFrom", oldRvDelDateFrom, rvDelDateFrom);
    }

    public Date getRvDelDateTo() {
        return rvDelDateTo;
    }

    public void setRvDelDateTo(Date rvDelDateTo) {
        Date oldRvDelDateTo = this.rvDelDateTo;
        this.rvDelDateTo = rvDelDateTo;
        changeSupport.firePropertyChange("rvDelDateTo", oldRvDelDateTo, rvDelDateTo);
    }

    public Character getRvDelivery() {
        return rvDelivery;
    }

    public void setRvDelivery(Character rvDelivery) {
        Character oldRvDelivery = this.rvDelivery;
        this.rvDelivery = rvDelivery;
        changeSupport.firePropertyChange("rvDelivery", oldRvDelivery, rvDelivery);
    }

    public String getItemDescription() {
        return itemDescription;
    }

    public void setItemDescription(String itemDescription) {
        String oldItemDescription = this.itemDescription;
        this.itemDescription = itemDescription;
        changeSupport.firePropertyChange("itemDescription", oldItemDescription, itemDescription);
    }

    public Integer getFileSequence() {
        return fileSequence;
    }

    public void setFileSequence(Integer fileSequence) {
        Integer oldFileSequence = this.fileSequence;
        this.fileSequence = fileSequence;
        changeSupport.firePropertyChange("fileSequence", oldFileSequence, fileSequence);
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (transNoLine != null ? transNoLine.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof EuropeOrderText)) {
            return false;
        }
        EuropeOrderText other = (EuropeOrderText) object;
        if ((this.transNoLine == null && other.transNoLine != null) || (this.transNoLine != null && !this.transNoLine.equals(other.transNoLine))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "seso.EuropeOrderText[ transNoLine=" + transNoLine + " ]";
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    }
    
}
